﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/TemplateUser.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="ManageBanking.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <link href="../../../../Content/css/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" />
    <link href="../../../../Content/css/SucErr.css" rel="stylesheet" type="text/css" />
    <script src="../../../../Scripts/functions.js" type="text/javascript"></script>

    <script src="../../../../Scripts/wysiwyg.js" type="text/javascript"></script>
    <script src="../../../../Scripts/jquery.validate.js" type="text/javascript"></script>

    
	<script language="javascript" type="text/javascript">
	    $(document).ready(function() {

	        $('#f1').validate({
	            rules: {
	                name: {
	                    required: true
	                },
	                Address: {
	                    required: true
	                    
	                },
	                
	               
	                money: {
	                    required: true,
	                    number: true

	                },
	               Date: {
	                    required: true
	                }
	               




	            }, //ket thuc rules
	            messages: {
	            name: {
	                required: "Name Can Not Be Null"
	            },
	            Address: {
	                required: "Address Can Not Be Null"

	            },


	            money: {
	                required: "Money To Cheque Can Not Be Null",
	                number: "Money Must Be Number"

	            },
	            Date: {
	                required: "Date Cheque Can Not Be Null"
	            }




	            }
	        });  // ket thuc validate

	        // $('#oldpassword').keyup(function() {
	        //         $('#messge_error').html("");
	        //    });


	    });
	    $(document).ready(function() {

	    $('#Date').datepicker({
	            showButtonPanel: true,
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: 'yy-mm-dd',
	            yearRange: '1960:2020'

	        });
	    });             // ket thuc ready
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

     <div class="center_block_top"><span>&nbsp;</span><h3>Registry</h3></div>
<div class="center_block_mau"><!--section-->
	<div id="intro">
<blockquote>
  <div class="redistry">
  
  		<%using (Html.BeginForm("ResolveChange", "Cheque", FormMethod.Post, new { @id = "f1" }))
      { %>
      
      <% Cheque cq = (Cheque)ViewData["info"];
          
       %>
      <input id="Hidden1" type="hidden" name="id" value="<%=ViewData["id"] %>" />
      
  		<ul>
        	<li>
            	<span>Name</span>
            	<div class="input_text"></div>
            	<div><input  name="name" id="name" type="text" size="20" value="<%=cq.NameReceiver %>" />
            	
            	</div>
            	<div></div></li>
            <li>
            	<span>Address</span>
            	<div class="input_text"></div>
            	<div><input id="Address" name="Address"  type="text" size="20" value="<%=cq.Address %>" />
            	
            	</div>
            	<div></div></li>
            
            
            	
            
            <li>
            
            	<span>&nbsp;</span>
                <ul>
                	<li ><input type="submit" name="button" value="OK" class="ok"/></li>
                    <li id="cancel" ><input type="reset" name="button" value="Reset" class="ok" /></li>
                </ul>
            </li>
        </ul>
        <%} %>
        
  </div>
  
  
  
</blockquote>
<div class="clearBoth"></div>
<blockquote>
 
</blockquote>
</div>
<!--//intro-->
</div>
<div class="center_block_bottom_mau"></div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderScript" runat="server">

</asp:Content>
